package com.usian.wemedia;

import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.pojos.WmNewsVo;
import com.usian.model.media.pojos.WmUser;

import java.util.List;

public interface WmNewsControllerApi {

    public ResponseResult findPage(WmNewsPageReqDto dto);

    public ResponseResult submitNews(WmNewsDto dto);

    public ResponseResult findByNewId(Integer id);

    public ResponseResult deleteByNewId(Integer id);

    public ResponseResult downOrUp(WmNewsDto dto);

    public WmNews findByNewsId(Integer id);

    public ResponseResult updateNewStatus(WmNews wmNews);

    public WmUser findByUserId(Integer userId);

    public List<Integer> findNews();

    public ResponseResult findList(NewsAuthDto dto);

    public WmNewsVo findNewsById(Integer id);
}
